#pragma once
#include "KvTexNode.h"

/** subclass representing one text node in the syntax tree
 */

class KcTexTextNode : public KvTexNode
{
    using super_ = KvTexNode;

public:
    
    KcTexTextNode(const std::string_view& text, bool addWhitespace, bool stripInnerWhitepace = false, KvTexNode* parent = nullptr);

    std::string getTypeName() const override;

    KpSize getSize(KvPaint& paint) const override;

    double draw(KvPaint& paint, double x, double y) const override;

private:
    /** text-contents of the node */
    std::string text_;
};
